package com.desire.codegenerator.outconfig;

import com.baomidou.mybatisplus.core.toolkit.StringPool;
import com.baomidou.mybatisplus.generator.config.FileOutConfig;
import com.baomidou.mybatisplus.generator.config.po.TableInfo;

public class ServiceOutConfig extends FileOutConfig {
    private String outPath;

    @Override
    public String outputFile(TableInfo tableInfo) {

        return outPath + "/" + tableInfo.getServiceName()+ StringPool.DOT_JAVA;
    }

    public ServiceOutConfig(String templatePath, String outPath) {
        super(templatePath);
        this.outPath = outPath;
    }
}
